﻿using bleissem.CMWVS.UI.Dialogs;
using System;
using System.ComponentModel.Design;
using System.Reflection;

namespace bleissem.CMWVS.Commands
{
    public class AboutCommand : BaseCommand
    {
        #region Constructor

        public AboutCommand()
            : base(new CommandID(GuidList.GuidCMWVS_Plugin_About, (int)PkgCmdIDList.IDCMWVS_Plugin_About))
        {
        }

        #endregion Constructor

        protected override void OnBeforeQueryStatus()
        {
            this.Text = "About: " + Assembly.GetExecutingAssembly().GetName().Version.ToString();

            base.OnBeforeQueryStatus();
        }

        protected override void Execute()
        {
            new AboutWindow().ShowDialog();
        }
    }
}